export const API_ENDPOINTS = {
  ROOMS: '/api/rooms',
  ROOM_BY_ID: (id: string) => `/api/rooms/${id}`,
  MESSAGES: '/api/messages',
  MESSAGE_BY_ID: (id: string) => `/api/messages/${id}`,
  MESSAGE_STATS: '/api/messages/stats',
  SESSIONS: '/api/sessions',
  SESSIONS_BY_ROOM: (roomId: string) => `/api/sessions/room/${roomId}`,
  SESSION_DETAILS: (sessionId: string) => `/api/sessions/${sessionId}/details`,
  SESSION_GIFT_STATS: (sessionId: string) => `/api/sessions/${sessionId}/gift-stats`,
  SESSION_DELETE: (sessionId: string) => `/api/sessions/${sessionId}`,
  SESSION_SUBTITLES_ASS: (sessionId: string) => `/api/sessions/${sessionId}/subtitles.ass`,
} as const;

export const PAGINATION_CONFIG = {
  DEFAULT_PAGE_SIZE: 20,
  PAGE_SIZE_OPTIONS: ['10', '20', '50', '100'] as (string | number)[],
  SHOW_SIZE_CHANGER: true,
  SHOW_QUICK_JUMPER: true,
  SHOW_TOTAL: (total: number) => `共 ${total} 条记录`,
} as const;

export const MESSAGES = {
  SUCCESS: {
    CREATE: '创建成功',
    UPDATE: '更新成功',
    DELETE: '删除成功',
  },
  ERROR: {
    NETWORK: '网络错误',
    FETCH_ROOMS: '获取房间列表失败',
    CREATE: '创建失败',
    UPDATE: '更新失败',
    DELETE: '删除失败',
  },
  CONFIRM: {
    DELETE: '确定要删除这个房间吗？',
  },
} as const;
